//
//  SEGSHManager.h
//  ExcellentHome
//
//  Created by 刘山 on 16/9/5.
//  Copyright © 2016年 陈区. All rights reserved.
//
#import "SEGQueryGoodsIdelModel.h"
#import "SEGHTTPBusinessManager.h"
#import "SEGTopicDataModel.h"

typedef NS_ENUM(NSUInteger, SEGSHManagerStatus) {
    SEGSHManagerStatus_NONE = 0, //默认
    SEGSHManagerStatus_IDELING = 1, //闲置中
    SEGSHManagerStatus_IDLE_RENT = 2, //已出手(出借)： 如果是二手闲置表示 已出手 如果是出借闲置表示出借
    SEGSHManagerStatus_IDLE_DELETE = 3 //删除(已归还)： 如果是二手闲置表示 删除 如果是出借闲置表示已归还
};

typedef NS_ENUM(NSUInteger, SEGSHManagerType) {
    SEGSHManagerType_SECONDE_HAND = 2, //二手
    SEGSHManagerStatus_LEND = 4, //出借
    SEGSHManagerStatus_ME = 3 //我的
};

@interface SEGSHManager : NSObject

///  查询闲置信息接口数据源
@property (nonatomic, strong) NSMutableArray<SEGQueryGoodsIdelModel*>* dataSourceQueryGoodsIdel;

/**
 跳蚤市场 需要替换的model
 */
@property (nonatomic, strong) SEGQueryGoodsIdelModel *replaceModel;

///  闲置详细信息数据源
@property (nonatomic, strong) SEGQueryGoodsIdelModel* dataSourceGoodsIdel;

@property (nonatomic, strong) SEGTopicDataModel *topicDataModel;

///  闲置详细信息
///
///  @param goodsId  闲置ID
- (void)requestGetGoodsIdelBygoodsId:(NSString*)goodsId Finished:(SEGRequestCallBack)finished;

/**
 更新二手集市状态（删除或出手）
 
 @param goodsId goodsId
 @param objType objType
 @param status 删除传3 出手传2
 */
- (void)requestUpdateStatusBygoodsId:(NSString*)goodsId objType:(NSString*)objType status:(NSString*)status Finished:(SEGRequestCallBack)finished;

/**
 * 请求提交闲置信息
 * @author Wendy
 * @param params 参数字典
 * @param finished 回调结果
 */
- (void)requestSubmitGoodsIdelWithParams:(NSDictionary *)params finished:(SEGNetworkReponse)finished;

/**
 * 请求押金单位
 * @author Wendy
 * @param finished 回调结果
 */
- (void)requestRentUnit:(SEGNetworkReponse)finished;

/**
 * 请求商品分类
 * @author Wendy
 * @param classifyId 大分类ID
 * @param finished 回调结果
 */
- (void)requestGoodsClassifyWithClassifyId:(NSString *)classifyId finished:(SEGNetworkReponse)finished;

/**
 查询单条跳蚤市场数据
 
 @param goodsId 数据ID
 @param objType 类型
 @param finished 回调
 */
- (void)requestQueryMarketSingleWithGoodsId:(NSString *)goodsId
                                    objType:(NSString *)objType
                                   finished:(SEGRequestCallBack)finished;


/// 查询话题列表
/// @param finished 回调
- (void)requestTopicListWithPage:(NSString *)page finished:(SEGRequestCallBack)finished;

@end
